from django.conf.urls.defaults import *

import os

templatedir = os.path.join(os.getcwd(),"templates/")

urlpatterns = patterns('',
    # Example:
    # (r'^categories/', include('categories.apps.foo.urls.foo')),

    # Uncomment this for admin:
#     (r'^admin/', include('django.contrib.admin.urls')),

    (r'^main/media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': templatedir, 'show_indexes': True}),
    (r'^main/(?P<currentcategory>.*)/freq/$', 'categories.web.views.showfreq'),
    (r'^main/(?P<currentcategory>.*)/$', 'categories.web.views.showcategory'),
    (r'^main/$', 'categories.web.views.showpage'),
    (r'^about/$', 'categories.web.views.showabout'),
    (r'^contact/$', 'categories.web.views.showcontact'),
)
